<template>
  <div>
    <div class="top">
      <router-view></router-view>
    </div>
    <div class="bottom_nav">
      <ul>
        <li><router-link to="/home">首页</router-link></li>
        <li><router-link to="/find">找房</router-link></li>
        <li><router-link to="/news">资讯</router-link></li>
        <li><router-link to="/mine">我的</router-link></li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BottomNav'
}
</script>

<style scoped>
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
}

.bottom-nav li {
  flex: 1;
  text-align: center;
}

.bottom-nav a {
  text-decoration: none;
  color: #333;
  padding: 10px 20px;
  display: block;
}

.bottom-nav a:hover {
  background-color: #f0f0f0;
}
</style>
